#ifndef COMPILER_ONLINE

#include <iostream>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <cmath>
#include <string>
#include <climits>
#include <unordered_set>

using namespace std;

#include "../../oj_server/questions/3/header_temp.cpp"

#endif


void Test1()
{
    // 定义临时对象，来进行方法的调用
    int ans = 3;
    int ret = Solution().lengthOfLongestSubstring("abcabcbb");
    if(ret == ans){
        std::cout << "通过用例1, 测试abcabcbb通过 ... OK!" << std::endl;
    }
    else{
        std::cout << "没有通过用例1, 测试的值是abcabcbb" << std::endl;
    }
}

void Test2()
{
    int ans = 1;
    int ret = Solution().lengthOfLongestSubstring("bbbbb");
    if(ret == ans){
        std::cout << "通过用例2, 测试bbbbb通过 ... OK!" << std::endl;
    }
    else{
        std::cout << "没有通过用例2, 测试的值是bbbbb" << std::endl;
    }
}

void Test3()
{
    int ans = 3;
    int ret = Solution().lengthOfLongestSubstring("pwwkew");
    if(ret == ans){
        std::cout << "通过用例3, 测试pwwkew通过 ... OK!" << std::endl;
    }
    else{
        std::cout << "没有通过用例3, 测试的值是pwwkew" << std::endl;
    }
}

int main()
{
    Test1();
    Test2();
    Test3();
    return 0;
}